package com.baitengsoft.patentservicemonitor.job.redis.service;

import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.function.Consumer;

/**
 * @author wangze
 * @date 2018-08-26 16:35.
 **/
public interface IRedisHashService {

    String get(String key, String hKey);

    void set(String key, Map<String, Object> map);

    void set(String key, String hkey, Object value);

    Set<String> getKeys(String key);

    void delete(String key, Object... hashKeys);

    List<Object> getValues(String key);

    Map<String, Object> pagination(String key, Consumer<String> action);

    long size(String key);

}
